// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   FileSystemResourceLoader.java

package org.springframework.core.io;


// Referenced classes of package org.springframework.core.io:
//			DefaultResourceLoader, Resource, FileSystemResource, ContextResource

public class FileSystemResourceLoader extends DefaultResourceLoader
{
	private static class FileSystemContextResource extends FileSystemResource
		implements ContextResource
	{

		public String getPathWithinContext()
		{
			return getPath();
		}

		public FileSystemContextResource(String path)
		{
			super(path);
		}
	}


	public FileSystemResourceLoader()
	{
	}

	protected Resource getResourceByPath(String path)
	{
		if (path != null && path.startsWith("/"))
			path = path.substring(1);
		return new FileSystemContextResource(path);
	}
}
